package com.ruoyi.auto.api;

import com.erp.auto.domain.ErpAutoInfoModuleConfig;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(contextId = "remoteAutoModuleService", value = ServiceNameConstants.AUTO_SERVICE)
public interface RemoteAutoModuleService {
    
    @PostMapping("/auto/erpAutoInfoModuleConfig/implement")
    public void implement(@RequestBody ErpAutoInfoModuleConfig moduleConfig);
    
    @GetMapping("/auto/erpAutoInfoModuleConfig/getInfoModuleConfig")
    List<ErpAutoInfoModuleConfig> getInfoModuleConfig(@RequestParam(value = "storeId", required = false) Long storeId);
}
